package day02;

import java.util.Random;

public class homeworkarr02 {
    public static void main(String[] args) {
        int[] num = {1, 2, 3, 4, 5};
        Random sc = new Random();
        for (int i = 0; i < num.length; i++) {
            int c = sc.nextInt(num.length);
            int tmp;
            tmp = num[i];
            num[i] = num[c];
            num[c] = tmp;
        }
        for (int i = 0; i < num.length; i++) {
            System.out.print(num[i]+" ");
        }
    }
}
